*** Settings ***
Documentation    删除话题
Library     SeleniumLibrary

*** test cases ***
用户登录成功
    Open Browser    http://39.107.96.138:3000/    Chrome
    Maximize Browser Window
    Set Selenium Implicit Wait    5
    Set Selenium Speed    0.5
    Click Element   //a[@href="/signin"]
    Input Text    //*[@id="name"]     mitty
    Input Text    //*[@id="pass"]    123456
    Click Element    //input[@type="submit"]
    Element Text Should Be    //span[@class="user_name"]/a[@class="dark"]    mitty

点击话题
    Click Element    //a[@class="topic_title"]
    Click Element    //div[@class="CodeMirror-code"]/pre
    Press Keys      //div[@class="CodeMirror-code"]/pre     Mitty answer
    Click Element    //form[@id="reply_form"]//input[@type="submit"]